//
//  CinemaTableViewCell.m
//  WXMovie
//
//  Created by apple on 16/4/6.
//  Copyright © 2016年 zic_magic. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.cinemaNameLabel sizeToFit];
    
    self.cinemaNameLabel.size = CGSizeMake(self.cinemaNameLabel.frame.size.width, 21);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(CinemaModel *)model {
    
    
    _model = model;
//    NSLog(@"%@", _model);

    _lowPriceLabel.text = _model.lowPrice;
    
    _gradeLabel.text = _model.grade;
    _addressLabel.text = _model.address;
    _cinemaNameLabel.text = _model.name;
    [_seatImageView setImage:[UIImage imageNamed:@"cinemaCouponMark@2x"]];
    [_ticketImageView setImage:[UIImage imageNamed:@"cinemaSeatMark@2x"]];
    _distanceLabel.text = @"10km";
    [self awakeFromNib];
    
}

@end
